package com.zxm.dubbotest.provider.service;


import com.zxm.dubbotest.api.service.TimeService;
import org.apache.dubbo.config.annotation.Service;

import java.text.SimpleDateFormat;
import java.util.TimeZone;


@Service(
        version = "${hello.service.version}",
        application = "${dubbo.application.id}",
        registry = "${dubbo.registry.id}"
)
public class DefaultTimeService implements TimeService {
    @Override
    public String getTime() {

        return TimeZone.getDefault().getDisplayName()+new SimpleDateFormat("Y年M月d日H时m分s秒").format(System.currentTimeMillis());
    }
}
